#ifndef _TIMER_H_
#define _TIMER_H_

#include "../define/define.h"
#include "log.h"
#include "lock.h"

class Timer
{
public:

	Timer();
	~Timer();

	uint32 get_time();
	void   add_time();
	
	void  OnTimer();
	void  reset();
	
private:

    struct itimerval  m_value;
    uint32            m_time;
 
	logfile*           m_log;
	lock               m_lock;
};

uint32 get_time();
void  reset();


#endif
